/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 * Origin source from MaNGOS(GPL2).
 * Copyright (C) 2005-2010 MaNGOS <http://getmangos.com/>
 */

#ifndef __CHARACTER_DATABASE_H__
#define __CHARACTER_DATABASE_H__

#include "DatabaseMySQL.h"

namespace PQServiceCore
{
	class CharacterDatabase
	{
	public:
		static CharacterDatabase& getSingleton()
		{
			static CharacterDatabase inst;
			return inst;
		}

		 bool PExecute(const char *format,...);

		 bool CleanDatabase();

		 // sets the result queue of the current thread, be careful what thread you call this from
        void SetResultQueue(SqlResultQueue * queue);

	};

}
#define SCharacterDB PQServiceCore::CharacterDatabase::getSingleton()
#endif
